<template>
  <div>仪表盘</div>
  <div>姓名: {{ userStore.getUserName }} </div>
  <div>分数: {{ userStore.counter }} </div>
  <n-button @click="userStore.increment">加加</n-button>
  <n-button @click="userStore.doubleCounter" type="primary">乘2</n-button>
  <n-time-picker v-model:value="timestamp" size="medium" />
</template>

<script lang='ts' setup>
import { userStore as store } from '@/store/index'
// import { useI18n } from 'vue-i18n'
// const { locale } = useI18n()

const userStore = store()
const timestamp = ref(null)
// console.log($t)

</script>

<style scoped>
</style>
